package com.nut.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.nut.pojo.Storage;
import com.nut.pojo.StorageExample;
import com.nut.service.storage.StorageServiceI;

/**
*@author Nut
*@version 2018年8月13日 下午7:35:28
*@TODO
*
*/
@Controller
@RequestMapping("/storage")
public class StorageController {

	@Resource
	StorageServiceI storageService;
	@RequestMapping("/list.do")
	@ResponseBody
	public List<Storage> list(){
		StorageExample storageExample=new StorageExample();
		storageExample.createCriteria().andIsDelEqualTo(1);
		return storageService.getStorages(storageExample);
	}
}
